package com.qs.sckill.service;

import com.qs.sckill.entity.OrderInfo;
import com.qs.sckill.entity.User;
import com.qs.sckill.vo.GoodsVo;

public interface SckillService {

    /**
     * 秒杀接口：减库存、下订单、写入秒杀订单
     *
     * @param user  秒杀用户
     * @param goods 秒杀商品
     */
    OrderInfo doSckill(User user, GoodsVo goods);
}
